home *** CD-ROM | disk | FTP | other *** search
/ Delphi Programmer's Power Pack / Delphi Volume 1.iso / s_to_z / vpe_130 / c / vpecomon.h < prev    next >
C/C++ Source or Header  |  1996-09-15  |  6KB  |  173 lines

  1. //
  2. //              VPECOMON.H
  3. //              ==========
  4. //
  5. // Common definitions for the "Virtual Print Engine"
  6. //
  7. // 01/95 by IDEAL Software, T. Radde
  8. //
  9.  
  10.  
  11.  
  12. #ifndef _MODULE_VPECOMON
  13. #define _MODULE_VPECOMON
  14.  
  15.  
  16.  
  17. // VpeOpenDoc() Flag Parameters:
  18. // =============================
  19. #define VPE_GRID_INBACKGROUND  1        // Grid in Background
  20. #define VPE_GRID_INFOREGROUND  2        // Grid in Foreground
  21. #define VPE_GRID_TOOLBARBUTTON 4        // Grid Toolbar-Button visible
  22. #define VPE_GRID_VISIBLE       8        // Actually Grid visible
  23.  
  24. #define VPE_NO_RULER           16       // Ruler NOT visible
  25. #define VPE_NO_TOOLBAR         32       // Toolbar NOT visible
  26. #define VPE_NO_USER_CLOSE      64       // User can't close VPE -
  27.                                         // Stop-Button INVISIBLE and Sys-Menu
  28.                                         // disabled (if not embedded)
  29.                                         // VpeCloseDoc() works!
  30. #define VPE_NO_USER_MOVE       128      // User can't leaf through the document
  31.                                         // in future: then no Page-Seg in Statusbar
  32. #define VPE_NO_MOUSE_SCALE     256      // User can't scale with the MOUSE (VpeSetScale() works!)
  33. #define VPE_NO_USER_SCALE      (512 | VPE_NO_MOUSE_SCALE)     // User can't scale (VpeSetScale() works!)
  34.                                         // in future: then no Scale-Seg in Statusbar
  35.  
  36. #define VPE_NO_STATBAR        1024      // Statusbar invisible
  37.  
  38. #define VPE_NO_PRINTBUTTON    2048      // Print-Button invisible
  39.                                         // VpePrintDoc() works
  40.  
  41. #define VPE_EMBEDDED          4096      // Document Window is embedded within
  42.                                         // a window of the calling application
  43. #define VPE_LANDSCAPE         8192      // Document will be printed in Landscape-Format
  44. #define VPE_MEMORY_SWAP      16384      // Each page is swapped to a temporary file, so that
  45.                                         // only one page is held in memory (NOT implemented yet!)
  46. #define VPE_NO_HELPBTN       32768      // Help-Button invisible
  47. #define VPE_ROUTE_HELP       65536      // if Help-Button visible, pressing this or pushing the F1-key
  48.                                         // will cause the message VPE_HELP to be send to the owner-window,
  49.                                         // no matter if the VPE-window is embedded or not
  50. #define VPE_NO_INFOBTN       131072     // Info-Button invisible
  51.  
  52.  
  53. #define VPE_GRID_POSSIBLE      (VPE_GRID_INFOREGROUND | VPE_GRID_TOOLBARBUTTON)
  54. #define VPE_GRID_ON            (VPE_GRID_INFOREGROUND | VPE_GRID_TOOLBARBUTTON | VPE_GRID_VISIBLE)
  55. #define VPE_GRID_BKGON         (VPE_GRID_INBACKGROUND | VPE_GRID_TOOLBARBUTTON | VPE_GRID_VISIBLE)
  56. #define VPE_GRID_OFF           0
  57.  
  58.  
  59.  
  60.  
  61.  
  62. // VpePreviewDoc() Flag Parameters:
  63. // ===============================
  64. enum
  65. {
  66.    VPE_SHOW_NORMAL = 1,
  67.    VPE_SHOW_MAXIMIZED,
  68.    VPE_SHOW_HIDE,
  69. };
  70.  
  71.  
  72.  
  73.  
  74.  
  75. // Text-Formatting Attributes:
  76. // ===========================
  77. enum
  78. {
  79.     ALIGN_LEFT,
  80.     ALIGN_RIGHT,
  81.     ALIGN_CENTER,
  82.     ALIGN_JUSTIFIED,
  83.     ALIGN_PRINT,               // like ALIGN_LEFT, x2 and y2 are computed
  84. };
  85.  
  86.  
  87.  
  88.  
  89. // Frame Attributes:
  90. // =================
  91. enum
  92. {
  93.     FRAME_INSIDE,
  94.     FRAME_OUTSIDE,
  95.     FRAME_ONCENTER,
  96. };
  97.  
  98.  
  99.  
  100.  
  101.  
  102. // Picture Attributes:
  103. // ===================
  104. #define VPE_PIC_MERGE     1         // merge background with bitmap (SRCAND instead of SRCCOPY)
  105. #define VPE_PIC_KEEPIMAGE 2         // always hold the image-data in memory
  106. #define VPE_PIC_DISCARD_DIB_DRAW 4  // always discard the DIB from memory (immediately after drawing)
  107. #define VPE_PIC_KEEP_DIB_PAGE    8  // always hold the DIB in memory
  108.  
  109.  
  110.  
  111.  
  112. // ========================================================================
  113. //                        Notification Messages:
  114. // ========================================================================
  115. enum
  116. {
  117.    VPE_DESTROYWINDOW = WM_USER+2306,   // VPE was destroyed
  118.    
  119.    VPE_PRINT,                   // printing: wParam = 1: started
  120.                                 //                  = 0: ended
  121.                                 // lParam = Doc-Handle
  122.                              
  123.    VPE_PRINTCANCEL,             // printing: Setup-Dialog aborted
  124.                                 // lParam = Doc-Handle
  125.                              
  126.    VPE_HELP,                    // User requests help
  127. };
  128.  
  129.  
  130.  
  131.  
  132. // ========================================================================
  133. //                          Barcode Types:
  134. // ========================================================================
  135. #define BCT_EAN13           1
  136. #define BCT_EAN8            2
  137. #define BCT_UPCA            3
  138. #define BCT_CODABAR         5
  139. #define BCT_CODE39          6
  140. #define BCT_2OF5            7
  141. #define BCT_INTERLEAVED2OF5 8  
  142. #define BCT_UPCE            9
  143. #define BCT_EAN13_2         10
  144. #define BCT_EAN13_5         11
  145. #define BCT_EAN8_2          12
  146. #define BCT_EAN8_5          13
  147. #define BCT_UPCA_2          14
  148. #define BCT_UPCA_5          15
  149. #define BCT_UPCE_2          16
  150. #define BCT_UPCE_5          17
  151. #define BCT_EAN128A         18
  152. #define BCT_EAN128B         19
  153. #define BCT_EAN128C         20
  154. #define BCT_CODE93          21
  155. #define BCT_POSTNET         22
  156.  
  157.  
  158.  
  159. // ========================================================================
  160. //                          Positioning Codes:
  161. // ========================================================================
  162. #define VFREE           -1
  163. #define VLEFT           -2
  164. #define VRIGHT          -3
  165. #define VLEFTMARGIN     -4
  166. #define VRIGHTMARGIN    -5
  167. #define VTOP            -6
  168. #define VBOTTOM         -7
  169. #define VTOPMARGIN      -8
  170. #define VBOTTOMMARGIN   -9
  171.  
  172. #endif      // _MODULE_VPECOMON
  173.